<template>
  <div class="app">
    <Header />
    <router-view :key="key"></router-view>
    <Footer />
    <MusicController />
  </div>
</template>

<script>
import Header from './components/Header'
import Footer from './components/Footer'
import MusicController from './components/MusicController'
export default {
  name: 'App',
  components: {
    Header,
    Footer,
    MusicController
  },
  computed: {
    key () {
      const num = this.$route.path + Math.random()
      console.log(num)
      return num
    }
  }
}
</script>

<style lang="less">
*{
  margin: 0;
  padding: 0;
}

body{
  background-color: #f5f5f5;
}

a{
  text-decoration: none;
}

ul{
  list-style: none;
}

</style>
